﻿@model List<MovieMadness.Model.Movie>
<br />

@Html.ActionLink("Add Movie", "AddMovie", "Home", new { @class = "btn btn-lg btn-default" })


@foreach (var r in Model)
{
    <div class="well">
        <h2>@r.Title</h2>
        <h4>@r.Year</h4>
        @Html.ActionLink("Details", "Details", new { id = r.MovieId }, new { @class = "btn btn-primary"})
        @Html.ActionLink("Delete Movie", "DeleteMovie", "Home", new { id = r.MovieId }, new { @class = "btn btn-default btn-danger" })
     </div>
}
